package com.qyhl.webtv.module_microvideo.shortvideo.introduction;

import com.qyhl.webtv.commonlib.entity.microvideo.ShortVideoIntroductionBean;

public class ShortVideoIntroductionPresenter implements ShortVideoIntroductionContract.ShortVideoIntroductionPresenter {
    private ShortVideoIntroductionContract.ShortVideoIntroductionView mView;
    private ShortVideoIntroductionModel mModel;

    ShortVideoIntroductionPresenter(ShortVideoIntroductionContract.ShortVideoIntroductionView mView) {
        this.mView = mView;
        this.mModel = new ShortVideoIntroductionModel(this);
    }

    @Override
    public void getDetail(String actId) {
        mModel.getDetail(actId);
    }

    @Override
    public void setDetail(ShortVideoIntroductionBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
